//
// Created by 束庆乐 on 2025/1/5.
//
#include "iostream"
#include "string"
using namespace std;
//类模板
template<class NameType,class AgeType>
class Person{
public:
    Person(NameType name,AgeType age){
        this->mname = name;
        this->mage = age;
    }
    void showPerson(){
        cout << "name:" << this->mname << " age:" << this->mage << endl;
    }
public:
    NameType mname;
    AgeType mage;
};

void test1(){
    Person<string,int> P1("zhangsan",999);
    P1.showPerson();
}

int main100(){
    test1();

    return 0;
}